Skip to content

Use repo-file-sync-action to standardise pre-commit-config.yaml#23

Merged
HGWright merged 18 commits intoSciTools:mainfrom
trexfeathers:sync-action
Apr 11, 2024
Merged

Use repo-file-sync-action to standardise pre-commit-config.yaml#23
HGWright merged 18 commits intoSciTools:mainfrom
trexfeathers:sync-action

Conversation

@trexfeathers
Copy link
Copy Markdown
Contributor

@trexfeathers trexfeathers commented Apr 8, 2024

You can see a demo of this working here: trexfeathers/iris#88 (I tweaked certain config to temporarily make this work locally).

Don't bother looking at the commit sequence - lots of trial and error. Just look at the diff 😅

Further explanation:

These files are templates defining the standard format across all SciTools
repos. Repo deviations from template are periodically identified in pull
requests by the repo-file-sync-action.
### Possible actions on a deviation pull request
- ✔️ **Merge** - all deviations are re-aligned with the template
(E.g. the repo is simply out of date and needs updating).
-**Close** - all deviations are kept
(E.g. all deviations are required repo-specific detail).
- ️️✏️ **Edit** - re-align some deviations, keep others.
- 🏃 **Close then action independently**
(E.g. the repo contains content that should be added to the template).
### Further reading
- https://github.com/marketplace/actions/repo-file-sync-action
- [../.github/workflows/template-sync.yml](../.github/workflows/template-sync.yml)
- [../.github/template-sync.yml](../.github/template-sync.yml)

@trexfeathers trexfeathers requested a review from HGWright April 8, 2024 15:07
Copy link
Copy Markdown
Contributor

@HGWright HGWright left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks for this new GHA! @trexfeathers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants